package com.example.neusoftfood_828lhl.service;

import com.example.neusoftfood_828lhl.beans.Success;
import com.example.neusoftfood_828lhl.beans.UserInfo;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserService {
    @GET("userlogin.do")

    Call<UserInfo> login(@Query("username")String usertname,
                         @Query("userpass")String password);
    @GET("userregister.do")
    Call<Success> register(@Query("username")String usertname,
                           @Query("userpass")String password,
                           @Query("mobilenum  ")String mobilenum,
                           @Query("address  ")String address,
                           @Query("comment ")String comment

    );
}
